//
//  TQAFNetworkDownload.h
//  TiaoQu
//
//  Created by shuihulu on 14/12/26.
//  Copyright (c) 2014年 wsp. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^NetDownLoadSuccessIdBlock)(id successMessage);
typedef void (^NetDownLoadFailureIdBlock)(id failureMessage);

@interface TQAFNetworkDownload : NSObject

+ (instancetype)shareTQAFNetwork;

/**
 *  下载数据
 *
 *  @param useridstr       用户ID
 *  @param reqType         _t
 *  @param reqMethod       _m
 *  @param keyDicts		   其它参数字典
 *  @param successDownload 下载成功
 *  @param failureDownload 下载失败
 */
+ (void) downloadUserID:(NSString *)useridstr
				reqType:(NSString *)reqType
			  reqMethod:(NSString *)reqMethod
		andOtherKeyDict:(NSDictionary *)keyDicts
		successDownload:(NetDownLoadSuccessIdBlock)successDownload
		failureDownload:(NetDownLoadFailureIdBlock)failureDownload;
+ (void) downloadTaskUserID:(NSString *)useridstr
                reqType:(NSString *)reqType
              reqMethod:(NSString *)reqMethod
        andOtherKeyDict:(NSDictionary *)keyDicts
        successDownload:(NetDownLoadSuccessIdBlock)successDownload
        failureDownload:(NetDownLoadFailureIdBlock)failureDownload;

//json请求
- (void)TQAFNetworkHttpRequestJsonStyle:(NSString *)GetOrPost Url:(NSString *)url parameter:(NSDictionary *)paramater success:(void(^)(id responseObject))success failt:(void (^)(NSError *error))failt;
@end
